﻿<Window x:Class="FastAdmin.GerenciarCurso"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Loaded="Window_Loaded"
        Title="Gerenciar Curso" Height="500" Width="718">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="300"/>
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" Margin="10 0 0 0" VerticalAlignment="Center">
            <TextBlock Text="Início : "/>
            <TextBlock x:Name="txtInicio"/>
            
            <TextBlock Text="Término : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtTermino"/>

            <TextBlock Text="Status : " Margin="10 0 0 0"/>
            <TextBlock x:Name="txtStatus"/>
        </StackPanel>
        
        <Expander Header="Alunos" Grid.Row="1" Margin="10 0 0 0" Height="300px">
            <Expander.Content>
                <DataGrid Height="250px" AutoGenerateColumns="False" x:Name="dgAlunos" Margin="0 0 10 10" IsReadOnly="True" AlternationCount="2" RowBackground="AliceBlue" 
                  AlternatingRowBackground="LightBlue" SelectionMode="Single" VerticalAlignment="Top" ToolTip="Dê dois cliques para ver os dados do aluno."
                          MouseDoubleClick="dgAlunos_MouseDoubleClick">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Nome" Binding="{Binding NomeAluno}"/>
                        <DataGridTextColumn Header="Status" Binding="{Binding DescricaoStatus}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </Expander.Content>
        </Expander>
    </Grid>
</Window>
